package com.gillion.grule.client.core.variable;

import com.fasterxml.jackson.annotation.JsonIgnore;





public class RuleVariable extends BaseVariable
{
    @JsonIgnore
    private AssemblyVariable assemblyVariable;

    public Object getVariable(String name) {
        Object t = this.variables.get(name);
        return (t != null) ? t : this.assemblyVariable.getVariable(name);
    }


    public String toString() {
        return "RuleVariable{}";
    }

    public AssemblyVariable getAssemblyVariable() {
        return this.assemblyVariable;
    }



    public boolean equals(Object o) {
        return super.equals(o);
    }


    public int hashCode() {
        return super.hashCode();
    }

    public void setAssemblyVariable(AssemblyVariable assemblyVariable) {
        this.assemblyVariable = assemblyVariable;
    }
}